import axios from 'axios';
import { version } from 'vue';

/**
 * 电梯数据
 * @param snNo
 * @returns
 */
function liftData(snNo: string) {
    let data = {
        snNo: snNo,
        version:'0.0.1',
        platform:'h5',
        sign:'0',
        timestamp:''
    };
    return axios.post(`http://47.101.43.115/api/Lift/Info`, data);
}

/**
 * 天气信息
 * @returns 
 */
function weatherInfo() {
    let data = {
        snNo: '',
        version:'0.0.1',
        platform:'h5',
        sign:'0',
        timestamp:''
    };
    return axios.post(`http://47.101.43.115/api/Lift/Weather`, data);
}

export default
{
    liftData,
    weatherInfo
}